﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="manager.aspx.cs" Inherits="UCWebpart.WEB.admin" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="EntityDataSource1" AllowPaging="True" AllowSorting="True">
            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="mtrName" HeaderText="mtrName" ReadOnly="True" SortExpression="mtrName" />
                <asp:BoundField DataField="mtrPhone" HeaderText="mtrPhone" ReadOnly="True" SortExpression="mtrPhone" />
                <asp:BoundField DataField="mtrFreeTime" HeaderText="mtrFreeTime" ReadOnly="True" SortExpression="mtrFreeTime" />
                <asp:CheckBoxField DataField="mtrState" HeaderText="mtrState" ReadOnly="True" SortExpression="mtrState" />
                <asp:BoundField DataField="mtrPhoto" HeaderText="mtrPhoto" ReadOnly="True" SortExpression="mtrPhoto" />
                <asp:BoundField DataField="mtrLongestAdvanceBookingTime" HeaderText="mtrLongestAdvanceBookingTime" ReadOnly="True" SortExpression="mtrLongestAdvanceBookingTime" />
            </Columns>
        </asp:GridView>
    
        <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=meetingroomManagementEntities" DefaultContainerName="meetingroomManagementEntities" EnableFlattening="False" EntitySetName="MTR_bas_Meetingroom" EntityTypeFilter="MTR_bas_Meetingroom" 
            Select="it.[mtrName], it.[mtrPhone], it.[mtrPhoto], it.[mtrFreeTime], it.[mtrState], it.[mtrLongestAdvanceBookingTime]">
        </asp:EntityDataSource>
    
    </div>
    </form>
</body>
</html>
